import request from '@/utils/request'

// 查询执法信息录入列表
export function listSpot(query) {
  return request({
    url: '/check/spot/list',
    method: 'get',
    params: query
  })
}

// 查询执法信息录入详细
export function getSpot(scId) {
  return request({
    url: '/check/spot/' + scId,
    method: 'get'
  })
}

// 新增执法信息录入
export function addSpot(data) {
  return request({
    url: '/check/spot',
    method: 'post',
    data: data
  })
}

// 修改执法信息录入
export function updateSpot(data) {
  return request({
    url: '/check/spot',
    method: 'put',
    data: data
  })
}

// 删除执法信息录入
export function delSpot(scId) {
  return request({
    url: '/check/spot/' + scId,
    method: 'delete'
  })
}

// 导出执法信息录入
export function exportSpot(query) {
  return request({
    url: '/check/spot/export',
    method: 'get',
    params: query
  })
}